package com.trust.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ccc
 * @since 2023-11-10 14:10:31
 */
@Data
@TableName("setup_land")
public class SetupLand {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("地块分组")
    private String baseGroup;

    @ApiModelProperty("基地id")
    private Integer baseId;

    @ApiModelProperty("联系方式")
    private String phone;

    @ApiModelProperty("当前农事")
    private Integer currentFarmingId;

    @ApiModelProperty("当前种植")
    private Integer currentPlantId;

    @ApiModelProperty("当前种植批号")
    private String currentPlantCode;

    @ApiModelProperty("管理员")
    private String manager;

    @ApiModelProperty("地块面积")
    private BigDecimal area;

    @ApiModelProperty("地块编号")
    private String code;

    @ApiModelProperty("地块编号前缀")
    private String codePrefix;

    @ApiModelProperty("地块编号数字")
    private String codeNum;

    @ApiModelProperty("种植品种")
    private Integer plantCateId;

    @ApiModelProperty("开始时间")
    private Date startTime;

    @ApiModelProperty("地图数据")
    private String mapData;

    @ApiModelProperty("地块标注颜色")
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private String color;

    @ApiModelProperty("1种植 2育苗")
    private Integer plantType;
}